using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// Attendance
    /// </summary>    
	[Table("attendance")]
    public partial class AttendanceEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 学生用户ID
        /// </summary>
		[Column("student_user_id")]
        public long StudentUserId { get; set; }
    
        /// <summary>
        /// 考勤状态，1、正常，2、缺勤，3、迟到，4旷课，5早退
        /// </summary>
		[Column("status")]
        public int Status { get; set; }
    
        /// <summary>
        /// 分组ID
        /// </summary>
		[Column("attendance_group_id")]
        public long AttendanceGroupId { get; set; }
    }

	public class AttendanceEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<AttendanceEntity>(new EntityTypeConfiguration<AttendanceEntity>());
        }
    }
}

